﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
 <ul>
        <% int total = (int)ViewData["TotalPage"];
           
           if (total > 1)
           { 
            %>
            <li><a href="javascript:LoadPage(1)" class="firstLink" title="1">&nbsp;</a></li>
           <li><a href="javascript:LoadPage(<%: ((int)ViewData["PageCurr"]-1)==0?"1":((int)ViewData["PageCurr"]-1).ToString() %>)" class="previousLink" title="<%: ((int)ViewData["PageCurr"]-1)==0?"1":((int)ViewData["PageCurr"]-1).ToString()%>">&nbsp;</a></li>
           <li><a href="#" class="selectLink"><%: ((int)ViewData["PageCurr"]).ToString() %></a></li>
           <li><a href="javascript:LoadPage(<%: ((int)ViewData["PageCurr"]+1)>total?total.ToString():((int)ViewData["PageCurr"]+1).ToString() %>)" class="nextLink" title="<%: ((int)ViewData["PageCurr"]+1)>total?total.ToString():((int)ViewData["PageCurr"]+1).ToString()%>">&nbsp;</a></li>
           <li><a href="javascript:LoadPage(<%: total %>)" class="lastLink" title="<%: total %>">&nbsp;</a></li>
            <%
           }
             %>
           
      	</ul>